package com.motu.vertx.module.utility.commondata;

import io.vertx.core.json.JsonObject;

public class ProtocolMonitorHttpModel {
	protected long endTime; // 监控结束时间
	protected int cmdCode; // 监控的协议

	public ProtocolMonitorHttpModel() {
	}

	public ProtocolMonitorHttpModel(JsonObject obj) {
		endTime = obj.containsKey("end_time") ? obj.getLong("end_time") : 0;
		cmdCode = obj.containsKey("cmd_code") ? obj.getInteger("cmd_code") : 0;
	}

	public long getEndTime() {
		return endTime;
	}

	public int getCmdCode() {
		return cmdCode;
	}

}
